import Vue from 'vue'
import Router from 'vue-router'
import HelloWorld from '@/components/HelloWorld'
import Student from '@/components/Student'
import Task from '@/components/Task'
import Customer from "../components/Customer";
import workRecord from "../components/WorkRecord";
import Payment from "@/components/Payment";
import Invoice from "@/components/Invoice";
import Delivery_person from "../components/Delivery_person";
import Delivery_order from "../components/Delivery_order";
import TaskInFz from "@/components/TaskInFz";

import Order from '@/components/Order'
import EntryQuery from "@/components/EntryQuery";
import OutWarehouse from "@/components/OutWarehouse";
import OutBill from "@/components/OutBill";
import DistributeBill from "@/components/DistributeBill";
import BusinessDevelopment from "@/components/BusinessDevelopment";
import SupplierManage from "@/components/SupplierManage";
import WarehouseManage from "@/components/WarehouseManage";
import CargoSort from "@/components/CargoSort";

// 先在component里写组件并在上边引入，再在routes里写路由，最后去App.vue里写router-link to

Vue.use(Router)

export default new Router({
  routes: [
    {
      path:'/order',
      component:Order,
      name:'Order'
    },
    {
      path: '/',
      name: 'HelloWorld',
      component: HelloWorld
    },
    {
      path:'/stu',
      name:'Student',
      component: Student
    },
    {
      path:'/task',
      name:'Task',
      component: Task
    },
    {
      path:'/delivery_order',
      name:'DeliveryOrder',
      component:Delivery_order
    },
    {
      path:'/customer',
      name:'Customer',
      component:Customer
    },
    {
      path:'/workRecord',
      name:'WorkRecord',
      component:workRecord
    },{
      path:'/payment',
      name:'Payment',
      component:Payment
    },{
      path:'/taskinfz',
      name:'TaskInFz',
      component:TaskInFz
    },{
      path:'/invoice',
      name:'Invoice',
      component:Invoice
    },{
      path:'/delivery_person',
      name:'DeliveryPerson',
      component:Delivery_person
    },{
      path:'/order',
      name:'Order',
      component: Order
    },
    {
      path:'/entryQuery',
      name:'EntryQuery',
      component: EntryQuery
    },
    {
      path:'/outWarehouse',
      name:'OutWarehouse',
      component: OutWarehouse
    },
    {
      path: '/outBill',
      name: 'OutBill',
      component: OutBill
    },
    {
      path: '/distributeBill',
      name: 'DistributeBill',
      component: DistributeBill
    },
    {
      path: '/businessDevelopment',
      name: 'BusinessDevelopment',
      component: BusinessDevelopment
    },
    {
      path: '/supplierManage',
      name: 'SupplierManage',
      component: SupplierManage
    },
    {
      path: '/warehouseManage',
      name: 'WarehouseManage',
      component: WarehouseManage
    },
    {
      path: '/cargoSort',
      name: 'CargoSort',
      component: CargoSort
    },
  ]
})

